package com.sendpo.zjx.sendpo.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sendpo.zjx.sendpo.R;
import com.sendpo.zjx.sendpo.domain.JobRegisterDomain;
import com.sendpo.zjx.sendpo.utils.Tools;
import com.sendpo.zjx.sendpo.views.MainScrollview;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by zjx on 2018
 */

public class ZhaoPinShowUserActivity extends AppCompatActivity {
    @BindView(R.id.backbt)
    RelativeLayout backbt;
    @BindView(R.id.head)
    RelativeLayout head;
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.datetime)
    TextView datetime;
    @BindView(R.id.location)
    TextView location;
    @BindView(R.id.person_iv)
    ImageView personIv;
    @BindView(R.id.sex_tv)
    TextView sexTv;
    @BindView(R.id.person_rl)
    RelativeLayout personRl;
    @BindView(R.id.jingyan_iv)
    ImageView jingyanIv;
    @BindView(R.id.exprience_tv)
    TextView exprienceTv;
    @BindView(R.id.jingyan_rl)
    RelativeLayout jingyanRl;
    @BindView(R.id.xueli_iv)
    ImageView xueliIv;
    @BindView(R.id.education_tv)
    TextView educationTv;
    @BindView(R.id.xueli_rl)
    RelativeLayout xueliRl;
    @BindView(R.id.company_left)
    RelativeLayout companyLeft;
    @BindView(R.id.email_tv)
    TextView emailTv;
    @BindView(R.id.company_right)
    RelativeLayout companyRight;
    @BindView(R.id.zhiye_left)
    RelativeLayout zhiyeLeft;
    @BindView(R.id.zhiye_right)
    RelativeLayout zhiyeRight;
    @BindView(R.id.description_tv)
    TextView descriptionTv;
    @BindView(R.id.maincrollview)
    MainScrollview maincrollview;
    private JobRegisterDomain.DataBean data;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhaopin_showuser);
        ButterKnife.bind(this);
        Tools.initStatus(this, R.color.black);
        initComponent();
    }

    private void initComponent() {
        this.data = ((JobRegisterDomain.DataBean) getIntent().getSerializableExtra("data"));
        if (this.data != null) {
            this.title.setText("" + this.data.getJobName());
            this.location.setText("" + this.data.getJobCity() + "-" + this.data.getJobArea());
            this.sexTv.setText("" + this.data.getJobSex());
            this.exprienceTv.setText("" + this.data.getJobExprience());
            this.educationTv.setText("" + this.data.getJobEducation());
            this.emailTv.setText("" + this.data.getJobEmail());
            this.descriptionTv.setText("" + this.data.getJobDesctiption());
        }
    }

    @OnClick({R.id.backbt})
    public void onMyClick(View view) {
        switch (view.getId()) {
            case R.id.backbt:
                finish();
                break;
        }
    }

}
